package com.jiazhong.project.mapper;

import com.jiazhong.project.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;


public interface UserMapper {
    @Select("select * from tb_user where username=#{username} and password=#{password}")
    User login(User user);

    @Insert("insert into tb_user values (null,#{username},#{password},#{gender},#{addr})")
    void  register(User user);
}
